JavaScript
A5.ControlBaraction Method
Syntax
A5.ControlBar.action(action[,data])
Arguments
- actionstring
The name of the action to fire.
- dataobject
Optional data to pass to the action when it is fired.
Description
Programmatically fire an action of the control bar.
Example
// assume cbObj is a pointer to an instance of A5.ControlBar var data = {user: 'Fred Johnson'}; cbObj.action('save',data); // fire the "save" action with the passed in data